home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
tcoop10a.zip
/
DOC.ZIP
/
NODE.DOC
< prev
next >
Wrap
Text File
|
1991-11-20
|
2KB
|
50 lines
NODE.DOC 11/10/91 Copyright (c) 1991 by James S. Clark
==========================================================================
NODE
Node Class
--------------------------------------------------------------------------
Class Name Node
Superclass <none>
Category List
Other classes referenced <none>
Other catagories referenced <none>
Used by List, Tree
Inherited by Item
Declaration Node *n = new Node;
Instance Variables
Node *next;
Node *previous;
Instance Methods
<none>
--------------------------------------------------------------------------
GENERAL DESCRIPTION
The Node Class provides the base class for creating linked lists and tree
structures. In itself the Node Class does little. It provides pointers
to the next and previous (or left and right) nodes in the list. This
simple class allows the creation of doubly-linked lists and binary trees.
The List and Tree classes are used to manipulate Nodes.
--------------------------------------------------------------------------
VARIABLES
Node *next
This is a pointer to the next Node in a List, or the right Node
in a Tree.
Node *previous
This is a pointer to the previous Node in a List, or the left
Node in a Tree.
--------------------------------------------------------------------------
METHODS
Node (void)
Creates a Node with both pointers set to NULL.
--------------------------------------------------------------------------
NODE.DOC Copyright (c) 1991 by James S. Clark
==========================================================================